﻿
namespace LS.Nc6.Application.Cms
{
    /// <summary>
    /// 栏目新增
    /// </summary>
    public class CmsChannelAddInput
    {

        /// <summary>
        /// 栏目名称
        /// </summary>
        [Required(ErrorMessage="请输入栏目名称")]
        public string ChannelName { get; set; }

        /// <summary>
        /// 父栏目 Id
        /// </summary>
        [Required(ErrorMessage = "请输入父栏目")]
        public long ParentId { get; set; }

        /// <summary>
        /// 栏目索引
        /// </summary>
        public string IndexName { get; set; }
        /// <summary>
        /// 栏目组，对应 cms_channelgroup 表的 GroupName 字段
        /// </summary>
        public string GroupNames { get; set; }

        /// <summary>
        /// 内容图片，存储图片Id
        /// </summary>
        public string ImageUrlIds { get; set; }
        /// <summary>
        /// 栏目正文
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 外部链接，设置后链接将指向此地址
        /// </summary>
        public string LinkUrl { get; set; }
        /// <summary>
        /// 默认=None  链接到第一个子栏目= LinkToFirstChannel 链接到指定栏目=LinkToChannel 链接到第一条内容=LinkToFirstContent 仅一条内容时链接到此内容=LinkToOnlyOneContent  不可链接=NoLink
        /// </summary>
        public string LinkType { get; set; }
        /// <summary>
        /// 键字列表，各关键词间用英文逗号“,”分割
        /// </summary>
        public string Keywords { get; set; }
        /// <summary>
        /// 栏目简介
        /// </summary>
        public string Remark { get; set; }
    }
}
